package com.gitee.huxing.framework.redis;

/**
 * @Description: 缓存刷新接口
 * @ProjectName: SpringCloudLearning
 * @Package: com.huxing.framework.redis
 * @ClassName: CacheSupport
 * @Author: huxing
 * Date: 2021-05-24
 * Time: 10:47
 */
public interface CacheSupport {

    /**
     * 刷新容器中所有值
     * @param cacheName
     */
    void refreshCache(String cacheName);

    /**
     * 按容器以及指定键更新缓存
     * @param cacheName
     * @param cacheKey
     */
    void refreshCacheByKey(String cacheName, String cacheKey);
}
